package com.itheima.service.impl;


import com.itheima.mapper.UserSetmealMapper;
import com.itheima.pojo.Setmeal;

import com.itheima.service.UserSetmealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserSetmealServiceImpl implements UserSetmealService {
    @Autowired
    private UserSetmealMapper userSetmealMapper  ;
    /**
     * 获取所有套餐信息
     *
     * @return
     */

    public List<Setmeal> usergetSetmeal() {
        return  userSetmealMapper.usergetSetmeal();//获取所有套餐信息
    }

    /**
     * 根据套餐id查询套餐详情 套餐基本信息, 套餐关联的检查组  检查组关联的检查项
     *
     * @param id
     * @return
     */
    public Setmeal findById(Integer id) {
        return userSetmealMapper.findById(id);

    }
}
